package com.itheima.algorithm.priorityqueue;

/**
 * @author: TylerZhong
 * @description: 优先级队列
 * 普通队列
 */
public class Entry<E> implements Priority{
    private String value;
    private int priority;

    public Entry(String value, int priority) {
        this.value = value;
        this.priority = priority;
    }

    public String value() {
        return value;
    }

    @Override
    public int priority() {
        return priority;
    }
}
